<?php
$arr = [10, 20, 30, 40, 50, 60, 70, 80];
foreach ($arr as $item) {
    if ($item === 50) break;
    //break;
    echo $item, '<br>';
}
echo '循环结束....';